package com.heima.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.admin.dots.ChannelDto;
import com.heima.model.common.dtos.PageResponseResult;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.pojos.WmChannel;

public interface WmChannelService extends IService<WmChannel> {

    /**
     * 查询所有频道
     * @return
     */
    ResponseResult findAll();

    /**
     * 频道管理分页查询
     * @param dto
     * @return
     */
    PageResponseResult channelPage(ChannelDto dto);

    ResponseResult saveChannel(WmChannel channel);

    ResponseResult deleteById(Integer id);

    ResponseResult updateChannel(WmChannel channel);
}
